interface Person {
  readonly id:number;
  name: string;
  age?: number;
}

let viking:Person = {
  id:1,
  name:'VIK',
  age:20
}

//不能赋值
// viking.id = 12